package com.platform.mall.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.platform.mall.common.base.BaseEntity;
import com.platform.mall.common.valid.Update;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Date;

@Data
public class SysDict extends BaseEntity {

    @NotBlank(message = "修改字典数据id不能为null！", groups = {Update.class})
    @TableId(type = IdType.AUTO)
    private Long id;

    @NotBlank(message = "修改字典数据code不能为null！", groups = {Update.class})
    private String code;

    private String name;

    private  String  remark;

}
